#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2025/04/15 13:22
# @File           : room.py
# @IDE            : PyCharm
# @desc           : 房间

from fastapi import Depends,Query
from core.dependencies import Paging, QueryParams


class RoomParams(QueryParams):
    def __init__(self,
                name: str | None = Query(None, title="房间名称"),
                type: str | None = Query(None, title="房间类型"),
                location: str | None = Query(None, title="房间位置"),
                params: Paging = Depends()):

        super().__init__(params)
        self.name = ('like', name)
        self.type = ('in', [type] if type else None)
        self.location = ('like', location)

